#!/usr/bin/env node

const http = require('http');

http.createServer((req,res)=>{
  console.log(`\n${req.method} ${req.url} HTTP/${req.httpVersioin}`);
  console.log(req.header);
  console.log('');

  req.pipe(process.stdout);
  res.end('ok');
}).listen(8080);
